#pragma  once
#include "stdafx.h"
#include "units.h"
#include "common.h"
#include "parameters_model.h"

class ParametersModel;
class Common;
class Delegate;

class TimeSettings : public QObject
{
	Q_OBJECT

public:
	TimeSettings(Common* _common);
	~TimeSettings();
	void init_model();
	ParametersModel* model;
	Delegate* delegate;
private:
	Common* common;
private slots:
	void update_parameters();
	void getNewParameterValue(const QString &_name, const QVariant &_value);
	void addScriptParameter(const QString &script_name);
	void removeScriptParameter(const QString &script_name);
signals:
	void setNewParameterValue(const QString &_name, const QVariant &_value);
};
